package com.y2.authprj.dao.auth;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.y2.authprj.bean.auth.model.FunctionauthorityInfo;
import com.y2.authprj.bean.auth.model.RoleInfo;
import com.y2.authprj.bean.auth.model.RoleauthorityInfo;
import com.y2.authprj.bean.auth.model.SysroleInfo;

public interface IRoleDao {

	public void add(RoleInfo roleInfo);
	
	public List<RoleInfo> findByRoleid(int roleId);
	/**
	 * 条件分页
	 * @param staffInfo
	 * @return
	 */
	List<RoleInfo> queryByChose(RoleInfo roleInfo);
	public List<RoleInfo> findAllByName(@Param(value="name") String name);
	
	/**
	 * 逻辑删除
	 * @param id
	 * @return
	 */
	public int deleteRole(int roleauthorityId);
	
}
